package edu.dayu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.dayu.model.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface DictService extends IService<Dict> {
    //根据数据id查询子数据列表
    List<Dict> findChildData(Long id);

    /**
     * 导出
     */
    void exportData(HttpServletResponse response) throws UnsupportedEncodingException;

    /**
     * 导入
     */
    void importDictData(MultipartFile file);

    // 根据 dictCode 查询下层节点
    List<Dict> findByDictCode(String dictCode);
}
